export function promise2bool<T>(promise: Promise<T>): Promise<boolean> {
  return promise.then(() => true).catch(() => false);
}
